var DAO = require('./DAO')
var newsDAO =  {
    selNews:function(callback){
        DAO('select * from news',function(err,results){
            if(err){
                callback(err,null)
            }else{
                callback(null,results)
            }
        })
    }
}
module.exports = newsDAO